import { BaseDto } from "../models/Base.dto.js";

export function getSkip(body:BaseDto){
 return (body.pageNum-1?body.pageNum-1:0)*(body.pageSize||0)
}
export function getSkipPlus(pageNum=0,pageSize=10){
  return (pageNum-1?pageNum-1:0)*(pageSize||0)
}
